package design.patterns.decorator.order;

/**
 * @Desc:   抽象装饰角色
 * @author: cww
 * @DateTime: 2020/6/10 11:21
 */

abstract public class OrderDecorator extends Order{
    protected Order order;

    public OrderDecorator(Order order) {
        this.order = order;
        this.setSalesDate(order.getSalesDate());
        this.setCustomerName(order.getCustomerName());
    }

    public void print() {
        super.print();
    }
}
